<?php
namespace App\Server;
use \App\Exceptions\ValidateException;
class Validate{
    public static function make(array $post){
        if(empty($post['title'])){
            throw new ValidateException('标题不能为空');
            die;
        }else{
            return true;
        }
    }
}